package com.example.sjh_web.weather.network

import com.example.sjh_web.sjh_SunnyWeatherApplication
import com.example.sjh_web.weather.model.sjh_DailyResponse
import com.example.sjh_web.weather.model.sjh_RealtimeResponse
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Path

interface sjh_WeatherService {

    @GET("v2.5/${sjh_SunnyWeatherApplication.TOKEN}/{lng},{lat}/realtime.json")
    fun getRealtimeWeather(@Path("lng") lng: String, @Path("lat") lat: String): Call<sjh_RealtimeResponse>

    @GET("v2.5/${sjh_SunnyWeatherApplication.TOKEN}/{lng},{lat}/daily.json")
    fun getDailyWeather(@Path("lng") lng: String, @Path("lat") lat: String): Call<sjh_DailyResponse>

}